<template>
	
		<view class="otherGoods">
			<view class="items" v-for="(item,index) in list" :key='index' @click="enterDetail()">
				<image src="" mode=""></image>
				<text class="othername">{{item}}</text>
			</view>
		</view>
	
</template>

<script>
	
	export default {
		props:{
			list:Array,
			required:true
		},
		data() {
			return {
				
			}	
		},
		computed: {
			
			
		},
		
		methods: {
			enterDetail(){
				uni.navigateTo({
					url:'../enter/detail'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.otherGoods{
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		.items{
			height: 260rpx;
			width: 160rpx;
			line-height: 26rpx;
			image{
				height: 200rpx;
				width: 160rpx;
				background-color: #18B566;
			}
			
			.othername{
				font-size: 26rpx;
				
			}
		}
	}
</style>
